package com.ly.enums;

public enum TipEnum {

    LOGINMSG("用户校验信息不通过，信息不完整",1),
    AUTHMSG("用户权限不通过",2),
    ADDSUCCESSMSG("添加成功",3),
    ADDERRORMSG("添加失败",4),
    QUERYSUCCESS("查询成功",5),
    QUERYFAIL("查询失败",6);

    // 成员变量
    private String name;
    private int index;
    // 构造方法
    private TipEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }
    // get set 方法
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }
}